<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="<?php echo MAIN_URL;?>css/style.css" type="text/css" rel="stylesheet">
<link rel="icon" type="image/ico" href="<?php echo MAIN_URL;?>images/favicon.ico"></link> 
<title>Java Tution learn to success</title>
</head><body>
	<?php
	require "header.php";
	?>
            <!--Banner start here-->
            <div class="banner">
                <div class="banner_inner">
                	<img src="<?php echo MAIN_URL;?>images/banner.jpg" alt="">
                </div>
            <!--Banner end here-->    
            </div>
            <!--Content start here-->
            <div class="content">
            	
                <!-- content bottom-->
                <div class="content_bottom mar_top0">
                	<!-- content left -->
                	<div class="content_left">

<script>
$(document).ready(function(){ 
	  
              $("#r_button").click(function() {	
				  
				   $(".error").hide();
				   $("#emailtext").css("background", "#FFFFFF");
                   $("#emailtext").val("");
				   return false;
				});
           $("#s_button").click(function() {
			    
				 
                $(".error").hide();
				var email=$("#emailtext").val();
				 
                var emailPattern = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/; 
      
                     if(email=="")
			          {
                      $("#emailtext").css("background", "#DB5C04");
					  $("#emailtext").focus();
					  return false;
			          }
                         else if(!emailPattern.test(email)){  
       
                          $("#emailerror").show();
                           $("#emailtext").css("background", "#DB5C04");
					      $("#emailtext").focus();
                           return false;
                              }else{
						  $("#emailtext").css("background", "#FFFFFF");
						  }
           });
			
			 });
	 
</script>


                    	<h4 class="heading">Login Here</h4>
                        <p class="gray_heading">Java Tutions. Learn to success.</p>


   <form name="forgotpass" class="forgotpassForm" action="<?php echo MAIN_URL;?>index.php/login/forgotpasslink" method="post">
  
		   <?php
               if($this->session->flashdata('passwordstatus'))
                  {
					  echo $this->session->flashdata('passwordstatus');
      echo "<label class='error' style='float: left; margin-top: 12px;width: 290px; font-size: 16px; color: #04739D;'>
       Password Reset link sent to your email</label>";
	              unset($_SESSION['passwordstatus']);
	  
                   }?>
 <div style="height: 40px; width:10px">
           <label id="emailerror" style="display:none; color:red; font-size: 12px;" class="error">Email id not valid
           </label>
           </div>
 
	 <p><h3>Please enter Email id</h3></p>
          <label>Email id</label>
          <input type="text" name="emailtext" id="emailtext" >
           
           <input value="Clear" type="reset" id="r_button">
		  <input value="Submit" type="submit" id="s_button">

          
  </form>
              
			   
                    <!-- end content left -->
                    </div>
                    <!-- content right -->
                   <div class="content_right">
                    	<h4 class="heading">Our best teachers</h4>
                    	<div class="sem">
                        	<img src="<?php echo MAIN_URL;?>images/sem_teach1.png" alt="teacher">
                            <p>Study that improves your Knowledge and Personality </p>
                            <p><strong>Lory bright</strong></p> 
                        </div>
                        <div class="sem last">
                        	<img src="<?php echo MAIN_URL;?>images/sem_teach2.png" alt="teacher">
                            <p>Practical Knowledge is the thing that Industry looks always</p>
                            <p><strong>Lory bright</strong></p> 
                        </div>
                    <!--end content right -->
                    </div>
                    <div class="clear"></div>
                <!--end content bottom -->
                </div>
                
                <div class="clear"></div>
            <!--Content end here-->
            </div>
            
             <?php
			 require "footer.php";
			 ?>
            </body></html>